using System.Diagnostics.CodeAnalysis;

namespace Xunit.Sdk
{
	/// <summary>
	/// Exception thrown when an object reference is unexpectedly not null.
	/// </summary>
	[SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors")]
	public class NullException : AssertActualExpectedException
	{
		/// <summary>
		/// Creates a new instance of the <see cref="NullException"/> class.
		/// </summary>
		/// <param name="actual"></param>
		public NullException(object actual)
			: base(null, actual, "Assert.Null() Failure") { }
	}
}